home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Full / NetObjects Fusion 9 Standard / NOF9_Full_EN.exe / data1.cab / FSI / Update / lib / UpdatesEvents.js
Encoding:
Text File  |  2005-11-16  |  1.3 KB  |  48 lines

  1.   function dispatchEvent (action, source) {   
  2.     var evt = new NOF.EventObject(action, source);
  3.     updatesApp.dispatchEvent(evt);
  4.   }
  5.   
  6.   function onLoad() {
  7.     dispatchEvent("Load", null);
  8.   }
  9.  
  10.   function onUnLoad() {
  11.     // no save if not clicked 'Done'    
  12.     dispatchEvent("Unload", null);    
  13.   }
  14.   
  15.   function onUpdateNow() {
  16.     dispatchEvent("UpdateNow", null);
  17.   }
  18.   
  19.   function onDownload() {
  20.     dispatchEvent("Download", null);
  21.   }
  22.   
  23.   function onChangeDownloadLocation( source ) {
  24.     dispatchEvent('ChangeDownloadLocation', source);
  25.   }
  26.   
  27.   function onCheckVersion( source ) {
  28.     dispatchEvent('PREVIOUS_UPDATES_EDITOR.CheckVersion', source);
  29.   }             
  30.   
  31.   function showReleaseNotes(version, vInfo, build) {
  32.     nofUpdateObj.showReleaseNotes( version, vInfo, build, updatesApp.getResource() );        
  33.   }
  34.   
  35.   function getAHTML(headCnt, bodyCnt) {
  36.     var _head = "<head>"+headCnt+"</head>";
  37.     var _body = "<body>"+bodyCnt+"</body>";
  38.     
  39.     //NOF.util_logging_ConsoleLogger_global.info("getAHTML returned\r\n\r\n <html>\r\n"+_head+"\r\n"+_body+"\r\n</html>");
  40.     //alert("getAHTML returned\r\n\r\n <html>\r\n"+_head+"\r\n"+_body+"\r\n</html>");
  41.     return "<html>\r\n"+_head+"\r\n"+_body+"\r\n</html>";
  42.   }
  43.   
  44.   function exitUpdate(result) {        
  45.     window.returnValue = result;
  46.     window.close();
  47.   }
  48.